package com.poh.mapper;

import com.poh.pojo.SingIn;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface SingInMapper {
    int addSingIn(SingIn singIn);
    int deleteSingIn(@Param("sId") String sId);
    List<SingIn> querySingInByCourseId(@Param("courseId") int courseId);
    int updateSingInStatus(@Param("singInStatus") int singInStatus, @Param("sId") String sid, @Param("addTime") String addTime);
    int updateSUSingInStatus(@Param("sId") String sId, @Param("singInStatus") int singInStatus);
    String queryCodeBySid(@Param("sId") String sId);
    SingIn querySingInBySid(@Param("sId") String sId);
}
